package net.xdclass.product.feign;

import net.xdclass.common.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("xdclass-order-service")
public interface OrderFeignClient {

    /**
     * 查询订单状态
     * @param outTradeNo
     * @return
     */
    @GetMapping("/api/order/v1/query/state")
    JsonData queryOrderState(@RequestParam("outTradeNo") String outTradeNo);
}
